import actions from "../action/index"
import actionType from "../action/index"

let initState = {
    list: []
}

let userReducer = (state = initState, action: any) => {
    switch (action.type) {
        case actionType.USERLIST:
            return { list: action.playload }
    }
    return state
}

export default userReducer